<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>修改密码</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <style>
        *{
            box-sizing: initial;
            font-size: 14px;
        }
        html{
            height: 100%;
        }
        ul,li{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        input:focus {
            outline: 0;
        }
        .table{
            width: 600px;
            margin: 300px auto 0;
        }
        .text-left{
            text-align: left;
            padding-left: 25px;
        }
        .text-center{
            text-align: center;
        }
        .btn_box{
            width: 160px;
            margin: 20px auto 0;
        }
        .btn_box>input{
            padding: 0px;
        }
        #codeImg{
            vertical-align: middle;
        }
        .wq{
            background-color: #E9BA84;
        }
        .t_list_caption{
            background: url(/static/images/bg.jpg);
            line-height: 24px;
            text-align: center;
            color: #000000;
            font-weight: bold;
        }
        .t_td_text{
            height: 27px;
            line-height: 17px;
            text-align: center;
            background-color: #FFFFFF;
        }
        .flexbox{
            display: -webkit-flex; /* Safari */
            display: flex;
        }
        .spacebetween{
            justify-content: space-between;
            align-items:center;
        }
        .operationbtn>input[type="button"],.operationbtn>input[type="reset"],.operationbtn>input[type="submit"]{
            width: 66px;
            height: 17px;
            border: none;
            background: url(/static/images/frame1.gif);
            background-position: -943px 0;
            cursor: pointer;
            color: #0c3e09;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div>
    <form method="post" enctype="application/x-www-form-urlencoded">
        <table class="wq text-center table" border="0" cellpadding="0" cellspacing="1">
            <tr class="t_list_caption">
                <td colspan="2">首次登录变更密码</td>
            </tr>
            <tr class="t_td_text">
                <td>原始密码：</td>
                <td class="text-left"><input type="password" id="jiupass" name="oldPassword" /></td>
            </tr>
            <tr class="t_td_text">
                <td>新设密码：</td>
                <td class="text-left"><input type="password" id="xinpass" name="password" /></td>
            </tr>
            <tr class="t_td_text">
                <td>确认密码：</td>
                <td class="text-left"><input type="password" id="qrpass" name="rePassword" /></td>
            </tr>
            <tr class="t_td_text">
                <td>验证码：</td>
                <td class="text-left"><input type="text" id="code" name="code" /><img class="code" alt="验证码" title="图片看不清？点击重新得到验证码" id="codeImg" onclick="this.src='/code?'+Math.random()" /></td>
            </tr>
        </table>
        <div class="btn_box flexbox spacebetween operationbtn">
            <input type="reset" value="重填" />
            <input type="submit" value="确认" />
        </div>
        </form>
    </div>

    <script>

        //动态验证码
        function code() {
            var codeImg = document.getElementById('codeImg'), m = Math.random();
            codeImg.src = '/code?' + m;
        }
        window.onload = function () {
            code()
        }

    </script>
</body>
</html>